package jps.incremental.storage;

import org.jetbrains.jps.builders.BuildTarget;

import java.io.File;
import java.io.IOException;

/**
 * @author Sergey Serebryakov
 */
public interface Checksums {
    void saveChecksum(File file, BuildTarget<?> buildTarget, String checksum) throws IOException;

    String getChecksum(File file, BuildTarget<?> target) throws IOException;

    void removeChecksum(File file, BuildTarget<?> buildTarget) throws IOException;

    void clean() throws IOException;

    void force();
}
